import myAxios from "./myAxios";
const BASE_URL = "";
// 验证登录
export const reqLogin = (data) =>
  myAxios(BASE_URL + "/api/login", { ...data }, "POST");
// 获取天气接口
export const reqWheater = () =>
  myAxios("https://restapi.amap.com/v3/weather/weatherInfo", {
    key: "63e6984d71257c6872ca1bdff60f48b1",
    city: "310000",
    extensions: "base",
  });
// 获取商品分类
export const reqCategory = (data) =>
  myAxios("/api/manage/category/list", { ...data });
// 更新分类名称
export const updateCategory = (data) =>
  myAxios("/api/manage/category/update", { ...data }, "POST");
// 添加新分类
export const addCategory = (data) =>
  myAxios("/api/manage/category/add", { ...data }, "POST");
